/**
 * @author xinjie.txt
 * @time: 2020年7月9日 下午10:13:05
 */
package com.jiepu.exercise.primary.chapter5.exercise5;

/**
 * @Description:
 * @author xinjie.txt
 */
public class Bank {

	private Customer customer; 	// 客户
	private int custNum;		// 客户数量

	/**
	 * @return the customer
	 */
	public Customer getCustomer() {
		return customer;
	}

	/**
	 * @param customer
	 *            the customer to set
	 */
	public void setCustomer(Customer customer) {
		this.customer = customer;
	}

	/**
	 * @return the custNum
	 */
	public int getCustNum() {
		return custNum;
	}

	/**
	 * @param custNum
	 *            the custNum to set
	 */
	public void setCustNum(int custNum) {
		this.custNum = custNum;
	}

	/**
	 * 
	 */
	public Bank() {
		super();
		// TODO Auto-generated constructor stub
	}

	/**
	 * @param customer
	 * @param custNum
	 */
	public Bank(Customer customer, int custNum) {
		super();
		this.customer = customer;
		this.custNum = custNum;
	}

	public void addCustomer(Customer customer) {
		this.customer = customer;
	}
	/**
	 * 
	 * @Description:获取指定位置的客户
	 * @param index
	 * @return
	 */
	public Customer getCustomer(int index) {
		return customer ;
		
	}

}
